package com.siyuan2;

import java.beans.PropertyEditor;
import java.beans.PropertyEditorSupport;

/**
 * @className: StringToUserPropertyEditor
 * @Description: TODO
 * @author: wzq
 * @date: 2022/8/25 14:57
 */
public class StringToUserPropertyEditor extends PropertyEditorSupport implements PropertyEditor {

	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		User user = new User();
		user.setName(text);
		this.setValue(user);
	}
}
